class IncomeEntity {
	int code;
	IncomeData data;
	String message;

	IncomeEntity({this.code, this.data, this.message});

	IncomeEntity.fromJson(Map<String, dynamic> json) {
		code = json['code'];
		data = json['data'] != null ? new IncomeData.fromJson(json['data']) : null;
		message = json['message'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['code'] = this.code;
		if (this.data != null) {
      data['data'] = this.data.toJson();
    }
		data['message'] = this.message;
		return data;
	}
}

class IncomeData {
	List<IncomeDataRe> res;
	int total;

	IncomeData({this.res, this.total});

	IncomeData.fromJson(Map<String, dynamic> json) {
		if (json['res'] != null) {
			res = new List<IncomeDataRe>();(json['res'] as List).forEach((v) { res.add(new IncomeDataRe.fromJson(v)); });
		}
		total = json['total'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		if (this.res != null) {
      data['res'] =  this.res.map((v) => v.toJson()).toList();
    }
		data['total'] = this.total;
		return data;
	}
}

class IncomeDataRe {
	String money;
	String createdAt;
	String memo;
	String tel;

	IncomeDataRe({this.money, this.createdAt, this.memo, this.tel});

	IncomeDataRe.fromJson(Map<String, dynamic> json) {
		money = json['money'];
		createdAt = json['created_at'];
		memo = json['memo'];
		tel = json['tel'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['money'] = this.money;
		data['created_at'] = this.createdAt;
		data['memo'] = this.memo;
		data['tel'] = this.tel;
		return data;
	}
}
